from django.conf import settings
from django.core.mail import send_mail

from celery_tasks.main import app


# 再添加一个任务(方式二)以新建一个文件夹的形式并在main里的任务队列中添加 到列表中
@app.task(name='send_email')
def send_email(to_email, vrify_html):
    send_mail('美多商城验证', '', settings.EMAIL_FROM, [to_email], html_message=vrify_html)
